package src.com.foreknow.demo6;

public class TestDemo1 {
    public static void main(String[] args) {
        Animal animal = new Animal();
        animal.name = "tom";
        animal.age = 8;
        System.out.println(animal.age +"-----"+ animal.name);
        animal.eat();
        animal.sleep();

        Animal animal1 = new Animal();
        animal1.age =8;
        System.out.println(animal1.age +"-----"+ animal1.name);
        animal1.sleep();

        Person p = new Person();
        p.study();
    }
}






















